package com.quan.entity;

import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.math.BigDecimal;

/**
 * @author: xiexinquan520@163.com
 * User: XieXinQuan
 * DATE:2020/8/3
 */
@Data
public class OrderReq {

    @NotNull(message = "用户id不能为空")
    private Long userId;

    @NotNull(message = "产品id不能为空")
    private Long productId;

    @Size(min = 1, message = "购买数量不能小于1")
    private Integer count;


    private BigDecimal money;
}
